package server;

import java.rmi.RemoteException;
import java.rmi.server.UnicastRemoteObject;

import client.ClientUpdateImpl;

import network.ClientUpdates;
import network.ServerUpdates;


public class ServerUpdateImpl extends UnicastRemoteObject 
	implements ServerUpdates {

	Foop1GameServer server;
	
	protected ServerUpdateImpl( Foop1GameServer server) throws RemoteException {
		super();
		this.server = server;
	}

	@Override
	public void directionUpdate( direction directionPlayer ) {
		// TODO Auto-generated method stub
		System.out.println("test");
	}

	@Override
	public boolean registerClient( ClientUpdates cU) {
		return server.registerClient( cU);
	}

}
